.weather-content {
    padding: 20px;
}

.current-weather {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.weather-info {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.weather-main {
    text-align: center;
}

.temperature {
    font-size: 3em;
    font-weight: bold;
    color: #333;
}

.weather-desc {
    font-size: 1.2em;
    color: #666;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.weather-main:hover .weather-desc {
    color: #3498db;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.detail-item span:first-child {
    color: #666;
    font-size: 0.9em;
}

.detail-item span:last-child {
    font-weight: bold;
    color: #333;
}

.forecast {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.farming-advice {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.advice-card {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.advice-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.advice-card ul {
    list-style-type: none;
    padding-left: 0;
}

.advice-card li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.advice-card li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.nav-menu a.active {
    color: #3498db;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

/* 添加图标样式 */
.weather-icon {
    font-size: 4em;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.current-weather h2 i,
.forecast h2 i,
.farming-advice h2 i {
    margin-right: 10px;
    color: #3498db;
}

.detail-item i {
    font-size: 1.5em;
    color: #3498db;
    margin-bottom: 5px;
}

/* 美化卡片样式 */
.current-weather,
.forecast,
.farming-advice {
    transition: transform 0.2s;
}

.current-weather:hover,
.forecast:hover,
.farming-advice:hover {
    transform: translateY(-5px);
}

/* 美化农业建议列表 */
.advice-card li {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    margin: 10px 0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.advice-card li:hover {
    transform: translateX(5px);
}

.advice-card li i {
    margin-right: 10px;
}

.advice-card li i.fa-check {
    color: #2ecc71;
}

.advice-card li i.fa-exclamation-triangle {
    color: #e74c3c;
}

.advice-card li i.fa-spray-can {
    color: #3498db;
}

/* 添加响应式设计 */
@media (max-width: 768px) {
    .weather-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .weather-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .weather-details {
        grid-template-columns: 1fr;
    }
    
    .temperature {
        font-size: 2.5em;
    }
    
    .weather-icon {
        font-size: 3em;
    }
}

/* 添加加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.current-weather,
.forecast,
.farming-advice {
    animation: fadeIn 0.5s ease-out;
}

/* 美化标题样式 */
h2 {
    font-size: 1.5em;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 20px;
}

/* 添加天气图标的动画效果 */
.weather-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* 天气图标的悬停效果 */
.weather-main:hover .weather-icon {
    transform: scale(1.1) translateY(-5px);
}

/* 不同天气状态的图标颜色过渡 */
.weather-icon {
    transition: color 0.3s ease;
}

/* 添加天气切换动画 */
@keyframes weatherChange {
    0% { transform: scale(0.8) rotate(-10deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.weather-icon.changing {
    animation: weatherChange 0.5s ease-out;
}

/* 添加周预报样式 */
.weekly-forecast {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #00b4db, #0083b0);
    border-radius: 8px;
}

.forecast-day {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.forecast-day:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.forecast-day .day {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.forecast-day .date {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.forecast-day .weather-icon {
    font-size: 2rem;
    margin: 0.8rem 0;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.forecast-day .temp {
    margin: 0.8rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.forecast-day .temp-high {
    font-size: 1.1rem;
    font-weight: 600;
}

.forecast-day .temp-low {
    font-size: 0.9rem;
    opacity: 0.8;
}

.forecast-day .weather-desc {
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.wind-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.wind-info i {
    font-size: 0.9rem;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .weekly-forecast {
        grid-template-columns: repeat(4, 1fr);
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .weekly-forecast {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
        padding: 1rem;
    }

    .forecast-day .weather-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .weekly-forecast {
        grid-template-columns: repeat(2, 1fr);
    }

    .forecast-day {
        padding: 0.8rem;
    }
}

/* 预警信息样式 */
.alert-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin: 1.5rem 0;
    overflow: hidden;
}

.alert-header {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.alert-header h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0;
}

.alert-summary {
    display: flex;
    gap: 1.5rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.summary-item .label {
    font-size: 0.9rem;
    color: #666;
}

.summary-item .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.alert-content {
    padding: 1.5rem;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.alert-item:hover {
    transform: translateX(5px);
    background: #f1f3f5;
}

.alert-icon {
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
}

.alert-icon.high {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.alert-icon.medium {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.alert-icon.low {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.alert-info {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.alert-message {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.alert-time {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .alert-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .alert-summary {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .alert-item {
        flex-direction: column;
    }

    .alert-icon {
        align-self: flex-start;
    }
} 